﻿Ext.define('CB.view.user.Edit', {
    extend: 'Ext.window.Window',
    alias: 'widget.useredit',
    title: 'Editar Usuario',
    layout: 'fit',
    autoShow: true,
    initComponent: function () {
        this.items = [{
            xtype: 'form',
            items: [
                { xtype: 'textfield',
                    name: 'name',
                    fieldLabel: 'Name'
                },
            {
                xtype: 'textfield',
                name: 'email',
                fieldLabel: 'Email'
            }
            ]
        }];

        this.buttons = [
                {
                    text: 'Guardar',
                    action: 'save'
                },
                {
                    text: 'Cancelar',
                    scope: this,
                    handler: this.close
                }
        ];

        this.callParent(arguments);
    }
});